class Goods{
    sellIn:number;
    quality:number;
    name:string;
    constructor(name:string,sellIn:number,quality:number){
        this.sellIn=sellIn;
        this.quality =quality;
        this.name =name;
    }
    
    updateByDay(){
        this.sellIn = this.sellIn-1;
        this.quality = this.quality-1;
    }
    getSellIn(){
        return this.sellIn;
    }
    getQuality(){
        return this.quality;
    }
}
export default Goods